<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>荥阳市药品管理</title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
  <link rel="stylesheet" href="bower_components/morris.js/morris.css">
  <link rel="stylesheet" href="bower_components/jvectormap/jquery-jvectormap.css">
  <link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <link rel="stylesheet" href="bower_components/bootstrap-daterangepicker/daterangepicker.css">
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <script src="js/index/onclick.js"></script>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>

<body class="hold-transition skin-blue sidebar-mini">
<style type="text/css">
  .el-main{
    position: absolute;
    top: 70px;
    bottom:0px;
    left: 200px;
    right: 10px;
    padding: 0;
  }
</style>
<div class="wrapper">

  <header class="main-header">
    <a class="logo">
      <span class="logo-mini"><b>A</b>LT</span>
      <span class="logo-lg"><b>荥阳市药品采购平台</b></span>
    </a>
    <nav class="navbar navbar-static-top">
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <li class="dropdown user user-menu">
            <a href="#" id="user" class="dropdown-toggle" data-toggle="dropdown">
              <img src="img/user3-128x128.jpg"  class="user-image" alt="User Image">
              <span class="hidden-xs"></span>
            </a>
            <ul class="dropdown-menu">
              <li class="user-header">

                <img src="img/user3-128x128.jpg"  class="img-circle" alt="User Image">
              </li>
              <li class="user-footer">
                <div class="pull-left">
                  <a href="login.html" class="btn btn-default btn-flat">注销</a>
                </div>
                <div class="pull-right">
                  <a href="login.html"   class="btn btn-default btn-flat">登出</a>
                </div>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
        <!--监督机构-->
        <li id="jiandu" class="treeview">
          <a href="">
            <span>监督单位</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li class="treeview">
              <a href="#"> 药品品目管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="jdmuluweihu1()"> 药品品目维护</a></li>
                <li class="treeview">
                  <a onclick="jdxinxiweihu2()"> 药品信息维护
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <li><a onclick="jdcaigou3()">采购单审核</a></li>
            <li><a onclick="jdgonghuo4()">供货管理</a></li>
            <li class="treeview">
              <a href="#"> 交易查询统计
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="jduser5()"> 按采购单查询</a></li>
                <li><a onclick="jduser6()"> 按供货商查询</a></li>
                <li><a onclick="jduser7()"> 按采购医院单查询</a></li>
                <li><a onclick="jduser8()"> 按交易药品查询</a></li>
                <li class="treeview">
                  <a onclick="jduser9()"> 查询药品交易明细
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>

          </ul>
        </li>
        <!--采购查询.-->
        <li id="caigou" class="treeview">
          <a href="#">
            <span>采购管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <!--药品目录查询-->
            <li class="treeview">
              <a href="#"> 药品目录查询
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="cgmulu1()"> 药品品目查询</a></li>
                <li class="treeview">
                  <a onclick="cgxinxi2() "> 药品信息查询
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--采购目录管理-->
            <li class="treeview">
              <a href="#"> 药品目录管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="cgmuluweihu3()"> 采购药品选择</a></li>
                <li class="treeview">
                  <a onclick="cgcaigou4() "> 药品目录维护
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--采购管理-->
            <li class="treeview">
              <a href="#"> 采购管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="cgdanweihu5()"> 采购单维护</a></li>
                <li class="treeview">
                  <a onclick="cgruku6()"> 采购入库
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--退货管理-->
            <li class="treeview">
              <a href="#"> 退货管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li class="treeview">
                  <a onclick="cgtuihuo7()"> 退货单维护
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--结算管理-->
            <li class="treeview">
              <a href="#"> 结算管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li class="treeview">
                  <a onclick="cgjiesuan8()"> 结算单维护
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--交易查询统计-->
            <li class="treeview">
              <a href="#"> 交易查询统计
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="cguser9()"> 按采购单查询</a></li>
                <li><a onclick="cguser10()"> 按供货商查询</a></li>
                <li><a onclick="cguser11()"> 按采购医院查询</a></li>
                <li><a onclick="cguser12()"> 按交易药品查询</a></li>
                <li class="treeview">
                  <a onclick="cguser13()"> 查询药品交易明细
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>

          </ul>
        </li>
        <!--供货管理-->
        <li id="gonghuo" class="treeview">
          <a href="#">
            <span>供货管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <!--药品目录查询-->
            <li class="treeview">
              <a href="#"> 药品目录查询
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="ghmulu1()"> 药品品目查询</a></li>
                <li class="treeview">
                  <a onclick="ghxinxi2()"> 药品信息查询
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--商品管理-->
            <li class="treeview">
              <a href="#"> 商品管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="ghuser3()"> 供货查询</a></li>
                <li><a onclick="ghuser4()"> 供货取消</a></li>
                <li class="treeview">
                  <a onclick="xtuser5()"> 商品信息维护
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--发货管理-->
            <li class="treeview">
              <a href="#"> 发货管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li class="treeview">
                  <a onclick="xtuser6()"> 采购入库
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--退货管理-->
            <li class="treeview">
              <a href="#"> 退货管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li class="treeview">
                  <a onclick="xtuser7() "> 退货处理
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--结算管理-->
            <li class="treeview">
              <a href="#"> 结算管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li class="treeview">
                  <a onclick="xtuser8()"> 结算处理
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>
            <!--交易查询统计-->
            <li class="treeview">
              <a href="#"> 交易查询统计
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="xtuser9()"> 采购单查询</a></li>
                <li><a onclick="xtuser10()"> 供货商查询</a></li>
                <li><a onclick="xtuser11()"> 采购医院查询</a></li>
                <li><a onclick="xtuser12()"> 交易药品查询</a></li>
                <li class="treeview">
                  <a onclick="xtuser13()"> 药品交易明细
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>

          </ul>
        </li>
        <!--系统管理-->
        <li class="treeview" id="xitong">
          <a >
            <span>系统管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <!--药品目录查询-->
            <li><a onclick="xtyiyuan1()">医院维护</a></li>
            <!--商品管理-->
            <li><a onclick="xtgonghuo2()">供货商维护</a></li>
            <!--发货管理-->
            <li><a onclick="xtjiandu3()" >监督单位维护</a></li>
            <!--退货管理-->
            <li><a onclick="xtuser4()">用户管理</a></li>
            <!--字典管理-->
            <li class="treeview">
              <a href="#"> 字典管理
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a onclick="xtzduser5()"> 用户类型</a></li>
                <li><a onclick="xtzdyiyuan6()"> 医院明细</a></li>
                <li><a onclick="xtzdgonghuo7()"> 供货商明细</a></li>
                <li><a onclick="xtzdjiandu8()"> 监督机构明细</a></li>
                <li class="treeview">
                  <a onclick="xtzdxinxi9()"> 药品明细
                    <span class="pull-right-container">
                    </span>
                  </a>
                </li>
              </ul>
            </li>

          </ul>
        </li>
      </ul>
    </section>
  </aside>

  <div class="content-wrapper">

    <section class="content">
      <iframe id="add-new-event" name="right"  style="width:100%;height: 600px" frameborder="0">
      </iframe>
    </section>
  </div>
</div>

<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<script>
  $.widget.bridge('uibutton', $.ui.button);
  $(function() {
      var wd = 200;
      $(".el-main").css('width', $('body').width() - wd + 'px');
  });

</script>
<script type="text/javascript">
    $(function(){
        $.ajax({
            url: '/myspringboot/pdRole',
            type: 'POST',
            dataType: "json",
            success:function (result) {
                var code = result.code;
                console.log(code)
                var username = result.data;
                $("#user").append('<span>'+username+'</span>');

                // if (code == 0) {
                //     document.getElementById("jiandu").setAttribute("style","pointer-events: none;");
                //     document.getElementById("caigou").setAttribute("style","pointer-events: none;");
                //     document.getElementById("gonghuo").setAttribute("style","pointer-events: none;");
                // }
                if(code == 1){
                    document.getElementById("xitong").setAttribute("style","pointer-events: none;");
                    document.getElementById("caigou").setAttribute("style","pointer-events: none;");
                    document.getElementById("gonghuo").setAttribute("style","pointer-events: none;");
                }
                if(code == 2){
                    document.getElementById("jiandu").setAttribute("style","pointer-events: none;");
                    document.getElementById("xitong").setAttribute("style","pointer-events: none;");
                    document.getElementById("gonghuo").setAttribute("style","pointer-events: none;");

                }
                if(code == 3){
                    document.getElementById("jiandu").setAttribute("style","pointer-events: none;");
                    document.getElementById("xitong").setAttribute("style","pointer-events: none;");
                    document.getElementById("gonghuo").setAttribute("style","pointer-events: none;");

                }
                if(code == 4){
                    document.getElementById("jiandu").setAttribute("style","pointer-events: none;");
                    document.getElementById("xitong").setAttribute("style","pointer-events: none;");
                    document.getElementById("caigou").setAttribute("style","pointer-events: none;");
                }
            }
        })
    })
</script>
<script type="text/javascript" >

</script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/raphael/raphael.min.js"></script>
<script src="bower_components/morris.js/morris.min.js"></script>
<script src="bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<script src="bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<script src="bower_components/moment/min/moment.min.js"></script>
<script src="bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="bower_components/fastclick/lib/fastclick.js"></script>
<script src="dist/js/adminlte.min.js"></script>
<script src="dist/js/pages/dashboard.js"></script>
<script src="dist/js/demo.js"></script>
</body>
</html>
